﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.OleDb;
namespace CNLTHD_GoogleMapAPI_DAO
{
	public class ConnectingClass
	{
		public static string ConnectString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\GoogleMapAPI.mdb";
		public static OleDbConnection KetNoi()
		{
			OleDbConnection ketNoi = new OleDbConnection(ConnectString);

			if (ketNoi == null)
			{
				throw new Exception("Không thể mở kết nối");
				return null;
			}

			ketNoi.Open();

			return ketNoi;
		}
	}
}
